package com.stage.item
{
	import com.action.BaseAction;
	import com.logic.player.Property;
	
	import flash.display.Sprite;

	public class Player extends BasePlayer
	{
		private var _action:BaseAction;
		private var _property:Property;
		
		public function Player(data:Object, con:Sprite)
		{
			super(data, con);
		}
		
		public function get action():BaseAction{
			return _action;
		}
		
		public function set action(value:BaseAction):void{
			if(_action){
				if(value){
					value.height = _action.height;
					value.downSpeed = _action.downSpeed;
				}
				_action.end();
			}
			_action = value;
		}

		public function get property():Property
		{
			return _property;
		}

		public function set property(value:Property):void
		{
			_property = value;
		}

	}
}